<html><head><title>InsertString</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">InsertString()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result$ = <font color="#006666"><b>InsertString</b></font>(String$, StringToInsert$, Position)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Inserts 'StringToInsert$' into 'String$' at the specified 'Position'. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>String$</i></td>
<td width="90%"> 
The string to use. 

</td></tr>
<tr><td><i>StringToInsert$</i></td>
<td> 
The string to insert. 

</td></tr>
<tr><td><i>Position</i></td>
<td> 
The position in the string to insert the new string. The first position index is 1. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

A new string with the inserted string at the specified position. 

</blockquote><p><b>Example</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#006666">Debug</font></b> <font color="#006666">InsertString</font>("Hello !", "World", 7)  <font color="#006666">; Will display "Hello World!"</font>
  <b><font color="#006666">Debug</font></b> <font color="#006666">InsertString</font>("Hello !", "World", 1)  <font color="#006666">; Will display "WorldHello !"</font>
</font></pre>

</blockquote><p><b>See Also</b></p><blockquote>

<a href="removestring.html">RemoveString()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=hex.html>Hex()</a> - <a href=index.html>String Index</a> - <a href=lcase.html>LCase()</a> ->

</body></html>